package gnv;

import java.text.ParseException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;

import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.Table;

import java.math.BigDecimal;
import java.sql.*;

import net.sf.jasperreports.view.JasperViewer;
import net.sf.jasperreports.engine.xml.JRXmlLoader;
import net.sf.jasperreports.engine.JREmptyDataSource;
import net.sf.jasperreports.engine.JRException;
import net.sf.jasperreports.engine.JRExporter;
import net.sf.jasperreports.engine.JRExporterParameter;
import net.sf.jasperreports.engine.JRResultSetDataSource;
import net.sf.jasperreports.engine.JasperCompileManager;
import net.sf.jasperreports.engine.JasperExportManager;
import net.sf.jasperreports.engine.JasperFillManager;
import net.sf.jasperreports.engine.JasperPrint;
import net.sf.jasperreports.engine.JasperPrintManager;
import net.sf.jasperreports.engine.design.JasperDesign;
import net.sf.jasperreports.engine.JasperReport;



@SuppressWarnings("unused")
public class ClassTester {

	private static Table table;



	/**
	 * @param args
	 * @throws Exception 
	 * @throws Exception 
	 * @throws Exception 
	 */

	@SuppressWarnings({ })
	public static void main(String[] args) throws Exception {

		

		Pedido p = new Pedido().getPedidoDB(3029);
		System.out.println(p.getDireccion());
		new VerPedido_V2(p).open();

		
		
		/*
		ArrayList<Direccion> d = new Direccion().mostrarDireccion(1092);
		for (int i = 0; i < d.size(); i++ ){
			System.out.println(d.get(i).getDefectoDireccion());
		}
		 */
	
		/*
		System.out.println(c.getIdCliente());
		Direccion d = new Direccion();
		d.setIdCliente(c.getIdCliente());
		d.setNombre(c.getNombre());
		d.open();
		*/
		
		/*   	Pedido pGui = new Pedido();
		pGui.setNombre("paul");
		pGui.setDireccion("calle 54");
		pGui.setIdPedido(114);
		pGui.totalPedido();
		System.out.println(pGui.totalPedido());
		 */

		/*   	Gnv_Inicio gnv = new Gnv_Inicio();
    	gnv.valor("23");
		 */
		/*
    	Cliente customer = new Cliente();

    	Pedido pd = new Pedido();
    	pd.crearPedido(1);
    //	pd.agregarItem(15, 11, 2);
    	System.out.println(pd.agregarItem(15, 11, 2));*/
		/*
    	customer.setNombre("john maclein");
		customer.setTelefono("4891111");
		customer.setCalle("Diagonal 74");
		customer.setNumero("458");
		customer.setPiso("4");
		customer.setDepto("A");
		customer.setBarrio("Los Hornos");
		customer.setLocalidad("La Plata");
		customer.setFechanac(ClienteGUI.FechaParaMySql("15-08-1976"));
		customer.setSexo("1");
		customer.setMail("lechanguet@gmail.com");
		customer.insertarCliente();*/



	}
}


/*
}

 */










